<template>
	<view class="my-search-container">
		<!-- 搜索按钮 -->
		<view class="my-search-box">
			<!--搜索图标 -->
			<image src="@/static/images/search.png"  class="icon"></image>
			<!-- placeholder -->
			
				<text class="placeholder">{{placeholderText}}</text>
			
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"my-search",
		props:{
			placeholderText:{
				type:String,
				default:'搜索'
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
.my-search-container{
	display: flex;
	align-items: center;
	.my-search-box{
		height: 36px;
		background-color:$uni-bg-color;
		border-radius: 15px;
		border: 1px solid #cccc;
		width: 100%;
		display: flex;
		align-items: center;
		padding:0 10px;
		.icon{
			width: 20px;
			height: 20px;
		}
		.placeholder{
			font-size: 12px;
			margin-left: 5px;
			color: #999;
		}
	}
}
</style>